package com.xiongwei.decorater;

public abstract class Decorator extends Coffee {

    private Coffee coffee;

    public Decorator(Coffee coffee) {
        this.coffee = coffee;
    }

    public double getPrice() {
        return super.getPrice() + coffee.getPrice();
    }

    public String getDescription() {
        return super.getDescription() + coffee.getDescription();
    }
}
